<?php

include_once("class_lib.php");

$ctrl = new controller();
$items = $ctrl->getItems();

if (is_array($items) && count($items) > 0)
{
	foreach($items as $item)
	{
		if ($_GET["item"] == $item->getName())
		{
			print "<li>" . $item->getName() . "</li>";
		}
		else
		{
			print "<li><a href=\"?item=" . $item->getName() . "\">" . $item->getName() . "</a></li>";
		}

	}	
}

?>
